package core.tool.bpe;

import java.util.HashMap;

import org.dom4j.Document;
import org.dom4j.Element;

import core.tool.xml.dom4j.jaxb.XmlHelper;

public class BpeContext extends HashMap<String, Object>{
	

	
	private Document document;
	
	private Element element;
	
	
	public BpeContext(String xmlPath) {
		XmlHelper xmlHelper=new XmlHelper(xmlPath,XmlHelper.TYPE_FILE);
		this.document=xmlHelper.getDocument();
		this.element=xmlHelper.getElementByAttrXpath("Build/Actions/Action[@type='START']");

	}

	public Document getDocument() {
		return document;
	}

	public void setDocument(Document document) {
		this.document = document;
	}

	public Element getElement() {
		return element;
	}

	public void setElement(Element element) {
		this.element = element;
	}
	


	

}
